package org.test;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class testtab extends TabActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		TabHost host = getTabHost();

		Resources r = getResources();

		System.out.println("Reached new tab!!!!");

		host.addTab(host.newTabSpec("Map").setIndicator("New",
				r.getDrawable(R.drawable.icon)).setContent(
				new Intent(this, SellBooksActivity.class)
						.putExtra("TAB", "Map")));
		host.addTab(host.newTabSpec("Map").setIndicator("Existing",
				r.getDrawable(R.drawable.icon)).setContent(
				new Intent(this, DisplayCourseNumberPresentActivity.class)
						.putExtra("TAB", "Map")));
	}
}